<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="net.zhnb.util.Constants"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>智慧车展</title>
<meta name="keywords" content="宁波智慧车展">
<meta name="description" content="智慧车展,让红包飞!">
<jsp:include page="/commonImport.jsp"/>
</head>

<%
	String action = request.getParameter("action");
	String tagid = session.getAttribute("tagid")==null?"0":session.getAttribute("tagid").toString();
	String button = action.equals("lottery")?"马上进行抽奖":"查询中奖情况";
%>

<script>
	function checkForm(){
		if($("#mobile").val()==""||$("#mobile").val().length<11){
			alert("请输入11位手机号!");
			return false;
		}
	}
</script>

<body>
	<center>
		<div class="main" >
			<form action="<%=Constants.URL %>/main/<%=action%>" method="post" onsubmit="return checkForm()">
				<input type="hidden" name="tagid" id="tagid" value="<%=tagid%>"/>
				<table width="500" bgcolor="#126a98">
					<tr>
						<td>
							<img width="500" src="<%=Constants.URL %>/images/background.jpg"/>
						</td>
					</tr>
					<tr>
						<td align="center" valign="Bottom" >
							<font color="#ffffff" size="20">
							请输入您的手机号:<br/>
							<input style="width:480px; height:60px;FONT-SIZE: 60px;" type="text" id="mobile" name="mobile" maxlength="11" /><br/><br/>
							<input  type="submit" value="<%=button%>" style="width:250px; height:50px;FONT-SIZE: 30px;"/><br/><br/>
							</font>
						</td>
					</tr>
				</table>
			</form>
		</div>
	<jsp:include page="buttonInclude.jsp"/>
	</center>
</body>
</html>